const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var CommSchema = new mongoose.Schema({ 
     title: String ,
     desc:String,
     cateId:mongoose.Schema.ObjectId,
     author:String,
     timer: { type: Date, default: Date.now }
});

CommSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Comm',  CommSchema);